package com.lsh.oms.core.exception;

/**
 * lsh-payment
 *
 * @author peter
 * @date 16/8/3
 */
public enum ExceptionStatus {

    /** 操作成功 */
    SUCCESS("0","OK"),

    /** 操作成功 */
    SUCCESS_S("0","SUCCESS"),

    /** 操作成功 */
    FAIL_S("1001","FAIL"),

    /** 参数错误 */
    E1001001("1001001","参数异常"),

    /** 业务参数异常 */
    E1002001("1002001","业务参数异常"),

    /** 业务参数为空 */
    E1002002("1002002","业务参数为空"),

    /** 业务参数为空 */
    E1003001("1003001","查询结构为空或没有符合要求的数据"),

    /** 业务参数异常 */
    E3001001("3001001","系统异常");


    private final String message;

    private final String code;

    public String getMessage() {
        return message;
    }

    public String  getCode() {
        return code;
    }

    ExceptionStatus(String code,String message) {
        this.message = message;
        this.code = code;
    }



}
